﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BLL.Entities.Company;

namespace HTAProDataImporterTest
{
    [TestClass]
    public class TestAgents : BaseImporterTest
    {
        [TestMethod]
        public void CheckAgentFields()
        {

            CompanyAgent a = data_importer.store.Agents["-2113880369"] as CompanyAgent;

            Assert.IsNotNull(a, "CompanyAgent is null");
            Assert.AreEqual(a.Person.FirstName, "Mike");
            Assert.AreEqual(a.Person.LastName, "Kieth");
            Assert.AreEqual(a.Contact.PhoneMobile, "(905) 302-0366");
            
        }
    }
}
